package com.zx.mes.rabbitmq.hyl.topic;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


/**
 * 主题  接收
 * @author hyl
 * @date 2018-3-19
 */
@Component
@RabbitListener(queues = "topic.messages")
public class TopicReceiver2 {

    private static final Logger logger = LoggerFactory.getLogger(TopicReceiver2.class);

    @RabbitHandler
    public void process(String message){
        logger.info("Topic receiver2:{}",message);
    }
}
